package com.sise.wangzhan.main;

import com.sise.wangzhan.client.SumClient;
import feign.Feign;
import feign.gson.GsonEncoder;

/**
 * @Classname SumMain
 * @Description TODO
 * @Date 2020/4/9 9:51
 * @Created by wangzhan
 */
public class SumMain {
    public static void main(String[] args) {
        SumClient sumClient = Feign.builder()
                .encoder(new GsonEncoder())
                .target(SumClient.class, "http://localhost:8080/");

        SumClient.Stu stu = new SumClient.Stu(901,"TOMMY",89,80,75);
        System.out.println(sumClient.getSum(stu));
    }
}
